package cn.edu.cupk.factory.method;

public class MercedesBenz extends Car{
    public MercedesBenz() {
        super.carName = "这是一辆普通的MercedesBenz";
    }
    public MercedesBenz(String name){
        super.carName = name;
    }
    @Override
    public void showInfo() {
        System.out.println("MercedesBenz:"+super.carName);
    }
}
